/**
 * 
 */
package com.google.gwt.sample.stockwatcher.client;

/**
 * @author Prashanth
 *
 */
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.ui.SuggestOracle;


public interface ItemSuggestService extends RemoteService { 
	
    public static final String SERVICE_URI = "itemSuggest"; 
    
    public static class Util { 
    	
        public static ItemSuggestServiceAsync getInstance() { 
            ItemSuggestServiceAsync instance = 
(ItemSuggestServiceAsync) GWT.create(ItemSuggestService.class); 
            ServiceDefTarget target = (ServiceDefTarget) instance; 
            target.setServiceEntryPoint(GWT.getModuleBaseURL() + 
SERVICE_URI); 
            return instance; 
        } 
    } 
    public SuggestOracle.Response getSuggestions(SuggestOracle.Request 
req); 
} 
